using System;
using System.Configuration;
using System.Web;
using Social.YouTube;

namespace Logic.SocialNetworks
{
	public class YouTubeConfig : IYouTubeConfig
	{
		public string DeveloperKey
		{
			get { return ConfigurationManager.AppSettings["ytApiKey"]; }
		}

		public string AppName
		{
			get { return ConfigurationManager.AppSettings["ytAppName"]; }
		}

		public string SessionToken { get; set; }
		
		public void SaveSessionToken()
		{
			//int accountID;
			//int.TryParse(HttpContext.Current.Request["ID"], out accountID);
			//Logic.BusinessLogic.AccountService.UpdateYtToken(accountID, SessionToken);
		}

		public string CallbackUrl
		{
			get { return ""; }
		}

		public string HostedDomain
		{
			get { throw new NotImplementedException("HostedDomain not implemented"); }
			//get { return ConfigurationManager.AppSettings["youtube_hostedDomain"]; }
		}
	}
}